
function handleCarInfo(data, num) {
    if (data) {
        if (data.status != 1) {
            alert(data.info);
            return;
        }
        else {
            var car = data.data[0];
            var divobj = $("#pk_car" + num);
			
            divobj.find("p").text(car.title);
            divobj.find("img").attr("src", 'http://www.sxol.com' + car.small_pic);
            loadCarParam(data, num);
        }
    }
}

function loadCarParam(data, num) {
    var base = data.data[0];
    var param = data.data[0];
    var trAll = $("#compareTable tbody tr");
    var thtext = "{";
    trAll.each(function (i) {
        if ($(this).attr("id")) {
            thtext += "\"" + $(this).attr("id") + "\":" + i + ",";
            //var textCarName = "<a href='http://www.sxol.com/car/car_detail.asp?id=" + param.carid + "' target='_blank'>" + base.title + "</a>";
            //$(this).find("th[num='" + num + "']").html(textCarName);
        }
    });
    if (thtext.length > 1)
        thtext = thtext.substring(0, thtext.length - 1);
    thtext += "}";
    var thobj = eval("(" + thtext + ")");
    var currentTd = trAll.slice(thobj.title + 1, thobj.basic);
    currentTd.each(function (i) {
        switch (i) {
            case 0:
                var hrefurl = "" + base.af3 + "";
                $(this).find("td[num='" + num + "']").html(hrefurl);
                break
            case 1:
                $(this).find("td[num='" + num + "']").text(base.nf);
                break
            case 2:
                var hrefurl = "" + base.af2 + "";
                $(this).find("td[num='" + num + "']").html(hrefurl);
                break
            default:
                ;
        }
    });
    currentPkCar = null;
    var currentTd = trAll.slice(thobj.basic + 1, thobj.cbody);
    currentTd.each(function (i) {
        switch (i) {
            case 0:
			//�����
                $(this).find("td[num='" + num + "']").text(param.af1);
                break
            case 1:
                $(this).find("td[num='" + num + "']").text(param.af2);
                break
            case 2:
                $(this).find("td[num='" + num + "']").text(param.af3);
                break
            case 3:
                $(this).find("td[num='" + num + "']").text(param.af4);
                break
            case 4:
                $(this).find("td[num='" + num + "']").text(param.af5);
                break
            case 5:
                $(this).find("td[num='" + num + "']").text(param.af6);
                break
            case 6:
                $(this).find("td[num='" + num + "']").text(param.af7);
                break
            case 7:
                $(this).find("td[num='" + num + "']").text(param.af8);
                break
            case 8:
                $(this).find("td[num='" + num + "']").text(param.af9);
                break
            case 9:
                $(this).find("td[num='" + num + "']").text(param.af10);
                break
            case 10:
                $(this).find("td[num='" + num + "']").text(param.af11);
                break
            case 11:
                $(this).find("td[num='" + num + "']").text(param.af12);
                break
            case 12:
                $(this).find("td[num='" + num + "']").text(param.af13);
                break
            case 13:
                $(this).find("td[num='" + num + "']").text(param.af14);
                break
            case 14:
                $(this).find("td[num='" + num + "']").text(param.af15);
                break
            default:
                ;
        }
    });
    currentPkCar = null;
    var currentTd = trAll.slice(thobj.cbody + 1, thobj.engine);
    currentTd.each(function (i) {
        switch (i) {
            case 0:
                $(this).find("td[num='" + num + "']").text(param.bf1);
                break
            case 1:
                $(this).find("td[num='" + num + "']").text(param.bf2);
                break
            case 2:
                $(this).find("td[num='" + num + "']").text(param.bf3);
                break
            case 3:
                $(this).find("td[num='" + num + "']").text(param.bf4);
                break
            case 4:
                $(this).find("td[num='" + num + "']").text(param.bf5);
                break
            case 5:
                $(this).find("td[num='" + num + "']").text(param.bf6);
                break
            case 6:
                $(this).find("td[num='" + num + "']").text(param.bf7);
                break
            case 7:
                $(this).find("td[num='" + num + "']").text(param.bf8);
                break
            case 8:
                $(this).find("td[num='" + num + "']").text(param.bf9);
                break
            case 9:
                $(this).find("td[num='" + num + "']").text(param.bf10);
                break
            case 10:
                $(this).find("td[num='" + num + "']").text(param.bf11);
                break
            case 11:
                $(this).find("td[num='" + num + "']").text(param.bf12);
                break
            case 12:
                $(this).find("td[num='" + num + "']").text(param.bf13);
                break
            default:
                ;
        }
    });
    currentPkCar = null;
    var currentTd = trAll.slice(thobj.engine + 1, thobj.dengine);
    currentTd.each(function (i) {
        switch (i) {
            case 0:
                $(this).find("td[num='" + num + "']").text(param.cf1);
                break
            case 1:
                $(this).find("td[num='" + num + "']").text(param.cf2);
                break
            case 2:
                $(this).find("td[num='" + num + "']").text(param.cf3);
                break
            case 3:
                $(this).find("td[num='" + num + "']").text(param.cf4);
                break
            case 4:
                $(this).find("td[num='" + num + "']").text(param.cf5);
                break
            case 5:
                $(this).find("td[num='" + num + "']").text(param.cf6);
                break
            case 6:
                $(this).find("td[num='" + num + "']").text(param.cf7);
                break
            case 7:
                $(this).find("td[num='" + num + "']").text(param.cf8);
                break
            case 8:
                $(this).find("td[num='" + num + "']").text(param.cf9);
                break
            case 9:
                $(this).find("td[num='" + num + "']").text(param.cf10);
                break
            case 10:
                $(this).find("td[num='" + num + "']").text(param.cf11);
                break
            case 11:
                $(this).find("td[num='" + num + "']").text(param.cf12);
                break
            case 12:
                $(this).find("td[num='" + num + "']").text(param.cf13);
                break
            case 13:
                $(this).find("td[num='" + num + "']").text(param.cf14);
                break
            case 14:
                $(this).find("td[num='" + num + "']").text(param.cf15);
                break
            case 15:
                $(this).find("td[num='" + num + "']").text(param.cf16);
                break
            case 16:
                $(this).find("td[num='" + num + "']").text(param.cf17);
                break
            case 17:
                $(this).find("td[num='" + num + "']").text(param.cf18);
                break
            case 18:
                $(this).find("td[num='" + num + "']").text(param.cf19);
                break
            case 19:
                $(this).find("td[num='" + num + "']").text(param.cf20);
                break
            case 20:
                $(this).find("td[num='" + num + "']").text(param.cf21);
                break
            case 21:
                $(this).find("td[num='" + num + "']").text(param.cf22);
                break
            default:
                ;
        }
    });


    currentPkCar = null;
    var currentTd = trAll.slice(thobj.dengine + 1, thobj.transmission);
    currentTd.each(function (i) {
        switch (i) {
            case 0:
                $(this).find("td[num='" + num + "']").text(param.ccf2);
                break
            case 1:
                $(this).find("td[num='" + num + "']").text(param.ccf3);
                break
            case 2:
                $(this).find("td[num='" + num + "']").text(param.ccf4);
                break
            case 3:
                $(this).find("td[num='" + num + "']").text(param.ccf5);
                break
            case 4:
                $(this).find("td[num='" + num + "']").text(param.ccf6);
                break
            case 5:
                $(this).find("td[num='" + num + "']").text(param.ccf7);
                break
            case 6:
                $(this).find("td[num='" + num + "']").text(param.ccf8);
                break

            default:
                ;
        }
    });

    currentPkCar = null;
    var currentTd = trAll.slice(thobj.transmission + 1, thobj.chassis);
    currentTd.each(function (i) {
        switch (i) {
            case 0:
                $(this).find("td[num='" + num + "']").text(param.df1);
                break
            case 1:
                $(this).find("td[num='" + num + "']").text(param.df2);
                break
            case 2:
                $(this).find("td[num='" + num + "']").text(param.df3);
                break
            default:
                ;
        }
    });
    currentPkCar = null;
    var currentTd = trAll.slice(thobj.chassis + 1, thobj.brakes);
    currentTd.each(function (i) {
        switch (i) {
            case 0:
                $(this).find("td[num='" + num + "']").text(param.ef1);
                break
            case 1:
                $(this).find("td[num='" + num + "']").text(param.ef2);
                break
            case 2:
                $(this).find("td[num='" + num + "']").text(param.ef3);
                break
            case 3:
                $(this).find("td[num='" + num + "']").text(param.ef4);
                break
            case 4:
                $(this).find("td[num='" + num + "']").text(param.ef5);
                break
            default:
                ;
        }
    });
    currentPkCar = null;
    var currentTd = trAll.slice(thobj.brakes + 1, thobj.safty);
    currentTd.each(function (i) {
        switch (i) {
            case 0:
                $(this).find("td[num='" + num + "']").text(param.ff1);
                break
            case 1:
                $(this).find("td[num='" + num + "']").text(param.ff2);
                break
            case 2:
                $(this).find("td[num='" + num + "']").text(param.ff3);
                break
            case 3:
                $(this).find("td[num='" + num + "']").text(param.ff4);
                break
            case 4:
                $(this).find("td[num='" + num + "']").text(param.ff5);
                break
            case 5:
                $(this).find("td[num='" + num + "']").text(param.ff6);
                break
            default:
                ;
        }
    });
    currentPkCar = null;
    var currentTd = trAll.slice(thobj.safty + 1, thobj.operation);
    currentTd.each(function (i) {
        switch (i) {
            case 0:
                $(this).find("td[num='" + num + "']").text(param.gf1);
                break
            case 1:
                $(this).find("td[num='" + num + "']").text(param.gf2);
                break
            case 2:
                $(this).find("td[num='" + num + "']").text(param.gf3);
                break
            case 3:
                $(this).find("td[num='" + num + "']").text(param.gf4);
                break
            case 4:
                $(this).find("td[num='" + num + "']").text(param.gf5);
                break
            case 5:
                $(this).find("td[num='" + num + "']").text(param.gf6);
                break
            case 6:
                $(this).find("td[num='" + num + "']").text(param.gf7);
                break
            case 7:
                $(this).find("td[num='" + num + "']").text(param.gf8);
                break
            case 8:
                $(this).find("td[num='" + num + "']").text(param.gf9);
                break
            case 9:
                $(this).find("td[num='" + num + "']").text(param.gf10);
                break
            case 10:
                $(this).find("td[num='" + num + "']").text(param.gf11);
                break
            case 11:
                $(this).find("td[num='" + num + "']").text(param.gf12);
                break
            case 12:
                $(this).find("td[num='" + num + "']").text(param.gf13);
                break
            case 13:
                $(this).find("td[num='" + num + "']").text(param.gf14);
                break
            case 14:
                $(this).find("td[num='" + num + "']").text(param.gf15);
                break
            case 15:
                $(this).find("td[num='" + num + "']").text(param.gf16);
                break
            default:
                ;
        }
    });
    currentPkCar = null;
    var currentTd = trAll.slice(thobj.operation + 1, thobj.outer);
    currentTd.each(function (i) {
        switch (i) {
            case 0:
                $(this).find("td[num='" + num + "']").text(param.hf1);
                break
            case 1:
                $(this).find("td[num='" + num + "']").text(param.hf2);
                break
            case 2:
                $(this).find("td[num='" + num + "']").text(param.hf3);
                break
            case 3:
                $(this).find("td[num='" + num + "']").text(param.hf4);
                break
            case 4:
                $(this).find("td[num='" + num + "']").text(param.hf5);
                break
            case 5:
                $(this).find("td[num='" + num + "']").text(param.hf6);
                break
            case 6:
                $(this).find("td[num='" + num + "']").text(param.hf7);
                break
            case 7:
                $(this).find("td[num='" + num + "']").text(param.hf8);
                break
            case 8:
                $(this).find("td[num='" + num + "']").text(param.hf9);
                break
            case 9:
                $(this).find("td[num='" + num + "']").text(param.hf10);
                break
            default:
                ;
        }
    });
    currentPkCar = null;
    var currentTd = trAll.slice(thobj.outer + 1, thobj.inner);
    currentTd.each(function (i) {
        switch (i) {
            case 0:
                $(this).find("td[num='" + num + "']").text(param.if1);
                break
            case 1:
                $(this).find("td[num='" + num + "']").text(param.if2);
                break
            case 2:
                $(this).find("td[num='" + num + "']").text(param.if3);
                break
            case 3:
                $(this).find("td[num='" + num + "']").text(param.if4);
                break
            case 4:
                $(this).find("td[num='" + num + "']").text(param.if5);
                break
            default:
                ;
        }
    });
    currentPkCar = null;
    var currentTd = trAll.slice(thobj.inner + 1, thobj.seats);
    currentTd.each(function (i) {
        switch (i) {
            case 0:
                $(this).find("td[num='" + num + "']").text(param.jf1);
                break
            case 1:
                $(this).find("td[num='" + num + "']").text(param.jf2);
                break
            case 2:
                $(this).find("td[num='" + num + "']").text(param.jf3);
                break
            case 3:
                $(this).find("td[num='" + num + "']").text(param.jf4);
                break
            case 4:
                $(this).find("td[num='" + num + "']").text(param.jf5);
                break
            case 5:
                $(this).find("td[num='" + num + "']").text(param.jf6);
                break
            case 6:
                $(this).find("td[num='" + num + "']").text(param.jf7);
                break
            case 7:
                $(this).find("td[num='" + num + "']").text(param.jf8);
                break
            case 8:
                $(this).find("td[num='" + num + "']").text(param.jf9);
                break
            case 9:
                $(this).find("td[num='" + num + "']").text(param.jf10);
                break
            case 10:
                $(this).find("td[num='" + num + "']").text(param.jf11);
                break
            default:
                ;
        }
    });
    currentPkCar = null;
    var currentTd = trAll.slice(thobj.seats + 1, thobj.media);
    currentTd.each(function (i) {
        switch (i) {
            case 0:
                $(this).find("td[num='" + num + "']").text(param.kf1);
                break
            case 1:
                $(this).find("td[num='" + num + "']").text(param.kf2);
                break
            case 2:
                $(this).find("td[num='" + num + "']").text(param.kf3);
                break
            case 3:
                $(this).find("td[num='" + num + "']").text(param.kf4);
                break
            case 4:
                $(this).find("td[num='" + num + "']").text(param.kf5);
                break
            case 5:
                $(this).find("td[num='" + num + "']").text(param.kf6);
                break
            case 6:
                $(this).find("td[num='" + num + "']").text(param.kf7);
                break
            case 7:
                $(this).find("td[num='" + num + "']").text(param.kf8);
                break
            case 8:
                $(this).find("td[num='" + num + "']").text(param.kf9);
                break
            case 9:
                $(this).find("td[num='" + num + "']").text(param.kf10);
                break
            case 10:
                $(this).find("td[num='" + num + "']").text(param.kf11);
                break
            case 11:
                $(this).find("td[num='" + num + "']").text(param.kf12);
                break
            case 12:
                $(this).find("td[num='" + num + "']").text(param.kf13);
                break
            case 13:
                $(this).find("td[num='" + num + "']").text(param.kf14);
                break
            case 14:
                $(this).find("td[num='" + num + "']").text(param.kf15);
                break
            case 15:
                $(this).find("td[num='" + num + "']").text(param.kf16);
                break
            case 16:
                $(this).find("td[num='" + num + "']").text(param.kf17);
                break
            case 17:
                $(this).find("td[num='" + num + "']").text(param.kf18);
                break
            case 18:
                $(this).find("td[num='" + num + "']").text(param.kf19);
                break
            case 19:
                $(this).find("td[num='" + num + "']").text(param.kf20);
                break
            case 20:
                $(this).find("td[num='" + num + "']").text(param.kf21);
                break
            default:
                ;
        }
    });
    currentPkCar = null;
    var currentTd = trAll.slice(thobj.media + 1, thobj.lights);
    currentTd.each(function (i) {
        switch (i) {
            case 0:
                $(this).find("td[num='" + num + "']").text(param.lf1);
                break
            case 1:
                $(this).find("td[num='" + num + "']").text(param.lf2);
                break
            case 2:
                $(this).find("td[num='" + num + "']").text(param.lf3);
                break
            case 3:
                $(this).find("td[num='" + num + "']").text(param.lf4);
                break
            case 4:
                $(this).find("td[num='" + num + "']").text(param.lf5);
                break
            case 5:
                $(this).find("td[num='" + num + "']").text(param.lf6);
                break
            case 6:
                $(this).find("td[num='" + num + "']").text(param.lf7);
                break
            case 7:
                $(this).find("td[num='" + num + "']").text(param.lf8);
                break
            case 8:
                $(this).find("td[num='" + num + "']").text(param.lf9);
                break
            case 9:
                $(this).find("td[num='" + num + "']").text(param.lf10);
                break
            case 10:
                $(this).find("td[num='" + num + "']").text(param.lf11);
                break
            case 11:
                $(this).find("td[num='" + num + "']").text(param.lf12);
                break
            case 12:
                $(this).find("td[num='" + num + "']").text(param.lf13);
                break
            case 13:
                $(this).find("td[num='" + num + "']").text(param.lf14);
                break
            case 14:
                $(this).find("td[num='" + num + "']").text(param.lf15);
                break
            case 15:
                $(this).find("td[num='" + num + "']").text(param.lf16);
                break
            case 16:
                $(this).find("td[num='" + num + "']").text(param.lf17);
                break
            case 17:
                $(this).find("td[num='" + num + "']").text(param.lf18);
                break
            case 18:
                $(this).find("td[num='" + num + "']").text(param.lf19);
                break
            default:
                ;
        }
    });
    currentPkCar = null;
    var currentTd = trAll.slice(thobj.lights + 1, thobj.glass);
    currentTd.each(function (i) {
        switch (i) {
            case 0:
                $(this).find("td[num='" + num + "']").text(param.mf1);
                break
            case 1:
                $(this).find("td[num='" + num + "']").text(param.mf2);
                break
            case 2:
                $(this).find("td[num='" + num + "']").text(param.mf3);
                break
            case 3:
                $(this).find("td[num='" + num + "']").text(param.mf4);
                break
            case 4:
                $(this).find("td[num='" + num + "']").text(param.mf5);
                break
            case 5:
                $(this).find("td[num='" + num + "']").text(param.mf6);
                break
            case 6:
                $(this).find("td[num='" + num + "']").text(param.mf7);
                break
            case 7:
                $(this).find("td[num='" + num + "']").text(param.mf8);
                break
            case 8:
                $(this).find("td[num='" + num + "']").text(param.mf9);
                break
            default:
                ;
        }
    });
    currentPkCar = null;
    var currentTd = trAll.slice(thobj.glass + 1, thobj.freeze);
    currentTd.each(function (i) {
        switch (i) {
            case 0:
                $(this).find("td[num='" + num + "']").text(param.nf1);
                break
            case 1:
                $(this).find("td[num='" + num + "']").text(param.nf2);
                break
            case 2:
                $(this).find("td[num='" + num + "']").text(param.nf3);
                break
            case 3:
                $(this).find("td[num='" + num + "']").text(param.nf4);
                break
            case 4:
                $(this).find("td[num='" + num + "']").text(param.nf5);
                break
            case 5:
                $(this).find("td[num='" + num + "']").text(param.nf6);
                break
            case 6:
                $(this).find("td[num='" + num + "']").text(param.nf7);
                break
            case 7:
                $(this).find("td[num='" + num + "']").text(param.nf8);
                break
            case 8:
                $(this).find("td[num='" + num + "']").text(param.nf9);
                break
            case 9:
                $(this).find("td[num='" + num + "']").text(param.nf10);
                break
            case 10:
                $(this).find("td[num='" + num + "']").text(param.nf11);
                break
            case 11:
                $(this).find("td[num='" + num + "']").text(param.nf12);
                break
            case 12:
                $(this).find("td[num='" + num + "']").text(param.nf13);
                break
            case 13:
                $(this).find("td[num='" + num + "']").text(param.nf14);
                break
            default:
                ;
        }
    });
    currentPkCar = null;
    var currentTd = trAll.slice(thobj.freeze + 1, thobj.tech);
    currentTd.each(function (i) {
        switch (i) {
            case 0:
                $(this).find("td[num='" + num + "']").text(param.of1);
                break
            case 1:
                $(this).find("td[num='" + num + "']").text(param.of2);
                break
            case 2:
                $(this).find("td[num='" + num + "']").text(param.of3);
                break
            case 3:
                $(this).find("td[num='" + num + "']").text(param.of4);
                break
            case 4:
                $(this).find("td[num='" + num + "']").text(param.of5);
                break
            case 5:
                $(this).find("td[num='" + num + "']").text(param.of6);
                break
            case 6:
                $(this).find("td[num='" + num + "']").text(param.of7);
                break
            default:
                ;
        }
    });
    currentPkCar = null;
    var currentTd = trAll.slice(thobj.tech + 1, trAll.size());
    currentTd.each(function (i) {
        switch (i) {
            case 0:
                $(this).find("td[num='" + num + "']").text(param.pf1);
                break
            case 1:
                $(this).find("td[num='" + num + "']").text(param.pf2);
                break
            case 2:
                $(this).find("td[num='" + num + "']").text(param.pf3);
                break
            case 3:
                $(this).find("td[num='" + num + "']").text(param.pf4);
                break
            case 4:
                $(this).find("td[num='" + num + "']").text(param.pf5);
                break
            case 5:
                $(this).find("td[num='" + num + "']").text(param.pf6);
                break
            case 6:
                $(this).find("td[num='" + num + "']").text(param.pf7);
                break
            case 7:
                $(this).find("td[num='" + num + "']").text(param.pf8);
                break
            default:
                ;
        }
    });
    currentPkCar = null;
    $("input[name='same']").removeAttr("checked");
    $("input[name='highligh']").removeAttr("checked");
    $("#compareTable tbody tr").each(function () {
        $(this).find($('td').get(0)).css("backgroundColor", "");
    });
}
function changeDirection(num, type) {
    var divArr = new Array();
    var allDiv = $(".ksdblist");
    var index = 0;
    allDiv.each(function (i) {
        var divobj = new Object();
        divobj.index = i + 1;
        divobj.idname = $(this).attr("id");
        divArr[i + 1] = divobj;
    });
    for (i in divArr) {
        if (divArr[i].idname == ("picdiv_" + num)) {
            index = i;
            break;
        }
    }
    index = parseInt(index);
    if (type == "left") {
        if (index < 2)
            return;
        var srcobj = $("#picdiv_" + num);
        var decobj = $("#" + divArr[index - 1].idname);
        var temp = srcobj.clone(true);
        var brand_id = srcobj.find("select:eq(0)").val();
        var seires_id = srcobj.find("select:eq(1)").val();
        var style_id = srcobj.find("select:eq(2)").val();
        temp.find("select:eq(0) option[value='" + brand_id + "']").attr("selected", "selected");
        temp.find("select:eq(1) option[value='" + seires_id + "']").attr("selected", "selected");
        temp.find("select:eq(2) option[value='" + style_id + "']").attr("selected", "selected");
        srcobj.remove();
        if (index == 2) {
            temp.find("input:eq(0)").hide();
            decobj.find("input:eq(0)").show();
        }
        if (index == 4) {
            temp.find("input:eq(2)").show();
            if (divArr[index - 1].idname.indexOf("picdiv") != -1)
                decobj.find("input:eq(2)").hide();
        }
        temp.insertBefore(decobj);
        $("#compareTable tbody tr").each(function () {
            var srctd = $(this).find("td[num='" + num + "'],th[num='" + num + "']");
            var dectd = srctd.prev();
            if (dectd.attr("num") != undefined) {
                var temp = srctd.clone();
                srctd.remove();
                temp.insertBefore(dectd);
            }
        });
    }
    else if (type == "right") {
        if (index > 3)
            return;
        var srcobj = $("#picdiv_" + num);
        var decobj = $("#" + divArr[index + 1].idname);
        var temp = srcobj.clone(true);
        var brand_id = srcobj.find("select:eq(0)").val();
        var seires_id = srcobj.find("select:eq(1)").val();
        var style_id = srcobj.find("select:eq(2)").val();
        temp.find("select:eq(0) option[value='" + brand_id + "']").attr("selected", "selected");
        temp.find("select:eq(1) option[value='" + seires_id + "']").attr("selected", "selected");
        temp.find("select:eq(2) option[value='" + style_id + "']").attr("selected", "selected");
        srcobj.remove();
        if (index == 3) {
            temp.find("input:eq(2)").hide();
            decobj.find("input:eq(2)").show();
        }
        if (index == 1) {
            temp.find("input:eq(0)").show();
            if (divArr[index + 1].idname.indexOf("picdiv") != -1)
                decobj.find("input:eq(0)").hide();
        }
        temp.insertAfter(decobj);
        $("#compareTable tbody tr").each(function () {
            var srctd = $(this).find("td[num='" + num + "'],th[num='" + num + "']");
            var dectd = srctd.next();
            if (dectd.attr("num") != undefined) {
                var temp = srctd.clone();
                srctd.remove();
                temp.insertAfter(dectd);
            }
        });
    }
}
function cancelFocus(num) {
    var sleobj = $("#picdiv_" + num + " select").last();
    $("form input:eq(0)").val(sleobj.height());
}
function setFocus(num) {
    var sleobj = $("#picdiv_" + num + " select").last();
    sleobj.unbind("focus");
    sleobj.unbind("blur");
    sleobj.focus();
}